package b全能司机;

public class Ship {
	private double zaiwegiht;// 载重
	private double displacewater;// 排水�?
	private double speed;// 速度

	public Ship(double zaiwegiht, double displacewater, double speed) {

		this.zaiwegiht = zaiwegiht;
		this.displacewater = displacewater;
		this.speed = speed;
	}

	public void start() {
		System.out.println("载重" + zaiwegiht + "�?排水�?" + displacewater
				+ "m³,平均行驶速度�?" + speed + "海里 / 每小时，轮船启动�?");
	}

	public void Whistle() {
		System.out.println("鸣笛");
	}

	public void breakDown() {
		System.out.println("抛锚");
	}
}